from django.db import models
from utils.models import CoreModel   


class UsersAuth(CoreModel):
        
    diff_approval = models.BooleanField(null=True, blank=True, verbose_name='是否批准对账差异', help_text='是否批准对账差异')    
    product_group = models.CharField(null=True, blank=True, max_length=16, verbose_name='允许的产品组', help_text='允许的产品组')    
    manual_delivery = models.BooleanField(null=True, blank=True, verbose_name='手动创建交货单', help_text='手动创建交货单')    
    order_types = models.CharField(null=True, blank=True, max_length=16, verbose_name='允许的订货类型', help_text='允许的订货类型')    
    display_price = models.BooleanField(null=True, blank=True, verbose_name='显示价格', help_text='显示价格')    
    product_types = models.CharField(null=True, blank=True, max_length=16, verbose_name='产品类型', help_text='产品类型')    
    user_id = models.CharField(null=True, blank=True, max_length=16, verbose_name='用户ID', help_text='用户ID')

    class Meta:
        db_table = 'users_auth'
        verbose_name = '用户权限'
        verbose_name_plural = verbose_name
        ordering = ('-create_datetime',)
    